﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Dominio.Repositorios;
using Infra.Repositorios;

namespace WebUI.Binders {
    public class UsuarioModelBinder : IModelBinder {

        public object BindModel(ControllerContext controllerContext, ModelBindingContext bindingContext) {
            return RepositorioFactory
                            .DeUsuario()
                            .Obtem(1);
        }
    }
}